<div class="half-size border-right pull-left">
    <h2 class="center-block text-center">Articles</h2>
    <?php
    if (isset($res_note_art)) {
        if (!mysqli_num_rows($res_note_art)) { ?>
            <div class="alert alert-warning center-block text-center half-size">
                Vous n'avez pas encore noté un article.
            </div>
        <?php }
        while ($row_note = mysqli_fetch_array($res_note_art)) { ?>
        <div class="list-note clearfix">
            <div class="pull-left">
                <h2><a href="<?= WEBROOT ?>article/article.php?id=<?= $row_note['id'] ?>" ><?php if(isset($row_note['title'])) { echo $row_note['title']; } ?></a></h2>
                <a href="<?= WEBROOT ?>user/user.php?id=<?= $row_note['autorID'] ?>"><?php if(isset($row_note['autor'])) { echo $row_note['autor']; } ?></a>
                <span>&emsp;&mdash;&emsp;</span>
                <?php if(isset($row_note['date'])) { echo $row_note['date']; } ?>
            </div>
            <div class="pull-right">
                        <div class="pull-left">
                            <div class="note pull-right">
                                <?= colorNote($row_note['note']) ?>
                            </div>
                        </div>
                        <div class="pull-right">
                            <form action="compte.php?page=myNotes" method="post">
                                <input type="hidden" name="id" value="<?= $row_note['id'] ?>" />
                                <button class="note-pouce pouce-vert" type="submit" name="note" value="1">
                        <span class="<?php if($row_note['pouce'] == 1) { echo 'note-green '; } ?>
                        glyphicon glyphicon-thumbs-up" aria-hidden="true"></span>
                                </button>
                                <button class="note-pouce" type="submit" name="note" value="-1">
                            <span class="<?php if($row_note['pouce'] == -1) { echo 'note-red '; } ?>
                            glyphicon glyphicon-thumbs-down" aria-hidden="true"></span>
                                </button>
                            </form>
                        </div>
                    </div>
        </div>

        <?php }
     } ?>
</div>
<div class="half-size pull-left border-left">
    <h2 class="center-block text-center">Commentaires</h2>
    <?php
    if (isset($res_note_com)) {
        if (!mysqli_num_rows($res_note_com)) { ?>
            <div class="alert alert-warning center-block text-center half-size">
                Vous n'avez pas encore noté un commentaire.
            </div>
        <?php }
        while ($row_note = mysqli_fetch_array($res_note_com)) { ?>
    <div class="list-note">
        <div class="clearfix">
            <div class="comm pull-left">
                <div class="info-comm clearfix">
                    <span class="pull-left"><a href="<?= WEBROOT ?>user/user.php?id=<?= $row_note['autorID'] ?>"><?= $row_note["autor"] ?></a></span>
                    <span class="pull-right"><?= $row_note["date"] ?></span>
                </div>
                <?= $row_note["content"] ?>
            </div>
            <div class="pull-right">
                <div class="pull-left">
                    <div class="note pull-right">
                        <?= colorNote($row_note['note']) ?>
                    </div>
                </div>
                <div class="pull-right">
                    <form action="compte.php?page=myNotes" method="post">
                        <input type="hidden" name="comID" value="<?= $row_note['id'] ?>" />
                        <input type="hidden" name="comType" value="1" />
                        <button class="note-pouce pouce-vert" type="submit" name="note" value="1">
                        <span class="<?php if($row_note['pouce'] == 1) { echo 'note-green '; } ?>
                        glyphicon glyphicon-thumbs-up" aria-hidden="true"></span>
                        </button>
                        <button class="note-pouce" type="submit" name="note" value="-1">
                            <span class="<?php if($row_note['pouce'] == -1) { echo 'note-red '; } ?>
                            glyphicon glyphicon-thumbs-down" aria-hidden="true"></span>
                        </button>
                    </form>
                </div>
            </div>
        </div>
        <div class="pull-left">
            <h4>Pour <a href="<?= WEBROOT ?>article/article.php?id=<?= $row_note['articleID'] ?>" ><?php if(isset($row_note['title'])) { echo $row_note['title']; } ?></a></h4>
        </div>
    </div>

    <?php }
     } ?>
</div>
